import numpy as np

arr = np.array([])

for i in range(10):
    strTest = '0' + str(i) + '.txt'
    arr = np.random.randint(1, 100, 10)
    np.savetxt(strTest, arr)